From 7796102f5cab84b7b9fe375ca59a48ab2024f1ac Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 9 Mar 2008 02:35:09 +0000 Subject: [PATCH] Forgot to add $isPublic to revComment too --- includes/Linker.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index 2b232c1e63..cc6d493313 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1124,14 +1124,16 @@ class Linker { * * @param Revision $rev * @param bool $local Whether section links should refer to local page + * @param $isPublic, show only if all users can see it * @return string HTML */ - function revComment( Revision $rev, $local = false ) { - if( $rev->userCan( Revision::DELETED_COMMENT ) ) { + function revComment( Revision $rev, $local = false, $isPublic = false ) { + if( $rev->isDeleted( Revision::DELETED_COMMENT ) && $isPublic ) { + $block = " " . wfMsgHtml( 'rev-deleted-comment' ) . ""; + } else if( $rev->userCan( Revision::DELETED_COMMENT ) ) { $block = $this->commentBlock( $rev->getRawComment(), $rev->getTitle(), $local ); } else { - $block = " " . - wfMsgHtml( 'rev-deleted-comment' ) . ""; + $block = " " . wfMsgHtml( 'rev-deleted-comment' ) . ""; } if( $rev->isDeleted( Revision::DELETED_COMMENT ) ) { return " $block"; -- 2.20.1